package com.example.tencentdemo.entity;

import com.google.gson.Gson;
import lombok.Data;

import java.sql.Timestamp;
@Data
public class group_message {
    private int id;
    private String sender_id;
    private String group_id;
    private String message;
    private String type;
    private Timestamp send_time;

    public static group_message fromJson(String json) {
        Gson gson = new Gson();
        return gson.fromJson(json, group_message.class);
    }
}
